package com.bestcem.xm.qdes.controller.param;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;

/**
 * @ClassName: TagParam
 * @Description:
 * @Author: gy.zhang
 * @Date: 2022/8/3 15:59
 */
@Data
public class TagParam {

    @NotNull(message = "标签名字不能为空")
    @Length(max = 10, message = "标签超出规定长度:10")
    @ApiModelProperty(value = "标签名字")
    private String title;

    @NotNull(message = "标签组id不能为空")
    @ApiModelProperty(value = "标签组id")
    @JsonProperty("group_id")
    private String groupId;
}
